Skip to content

feat: add batch background removal example#6

Open
nKOxxx wants to merge 1 commit intoPhotoroom:mainfrom
nKOxxx:main
Open

feat: add batch background removal example#6
nKOxxx wants to merge 1 commit intoPhotoroom:mainfrom
nKOxxx:main

Conversation

@nKOxxx
Copy link

@nKOxxx nKOxxx commented Mar 4, 2026

Add batch processing script for removing backgrounds from multiple images. Supports concurrent processing, progress tracking, and graceful error handling.

Add batch_remove_background.py for processing multiple images:
- Process entire folders of images
- Concurrent processing with ThreadPoolExecutor
- Progress tracking with tqdm (optional)
- Configurable workers and rate limiting
- Detailed success/failure reporting

Usage:
  python batch_remove_background.py ./input ./output

Features:
- Supports all Photoroom API image formats
- Handles errors gracefully
- Rate limiting to avoid API throttling
- Summary report at completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant